﻿//======================================================
//==     (c)2008 aspxcms inc by NeTCMS v1.0              ==
//==          Forum:bbs.aspxcms.com                   ==
//==         Website:www.aspxcms.com                  ==
//======================================================
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using NetCMS.Content.Collect;

public partial class manage_collect_Collect : NetCMS.Web.UI.NPage //.ManagePage
{
    public manage_collect_Collect()
    {
        //Authority_Code = "S011";
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        int num = 0, id = 0,startnum = 0;
        if (Request.QueryString["id"] == null || Request.QueryString["num"] == null || Request.QueryString["startnum"] == null
            || Request.QueryString["id"].Trim().Equals("") || Request.QueryString["num"].Trim().Equals("") || Request.QueryString["startnum"].Trim().Equals("")
            || Request.QueryString["norepeat"] == null)
        {
            PageError("参数无效", "");
        }
        id = int.Parse(Request.QueryString["id"]);
        num = int.Parse(Request.QueryString["num"]);
        startnum = int.Parse(Request.QueryString["startnum"]);
        bool norepeat = false;
        if (Request.QueryString["norepeat"] == "1")
            norepeat = true;
        bool ruku = false;
        if (Request.QueryString["ruku"] == "1")
            ruku = true;

        if (id < 1 || num < 1)
            PageError("输入了无效的参数!", "");
        Collect cl = new Collect();
        cl.Collecting(id, num, startnum, norepeat, ruku);
        Response.End();
    }
}
